package com.circle.interests.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.circle.interests.biz.entity.PrizeHonglianProduct;
import com.circle.interests.biz.mapper.PrizeHonglianProductMapper;
import com.circle.interests.biz.service.IPrizeHonglianProductService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 鸿联商品表 服务实现类
 * </p>
 *
 * @author generator
 * @since 2021-12-17
 */
@Service
public class PrizeHonglianProductServiceImpl extends ServiceImpl<PrizeHonglianProductMapper, PrizeHonglianProduct> implements IPrizeHonglianProductService {

    @Override
    public PrizeHonglianProduct getByProductCode(String productCode) {
        return getOne(Wrappers.lambdaQuery(PrizeHonglianProduct.class).eq(PrizeHonglianProduct::getProductCode, productCode));
    }
}
